<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的网页</title>
    <!-- 样式-->
    <style>
        button{
            
            background-color: blueviolet;
            font-size: larger;
            color: white;
        }
    </style>
</head>
<body>
    <!--结构-->  
    <button>
        谁最帅
    </button>
    <textarea name="" id="" cols="30" rows="10">
    </textarea>
    <!--行为-->
<Script>
    document.querySelector('button')
    btn.onclick = function(){
        alert('你最帅')
    }
</Script>
  
    
</body>
</html>